home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_gnu / adainc / a-retico.ads < prev    next >
Text File  |  1996-01-30  |  2KB  |  51 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                 GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS               --
  4. --                                                                          --
  5. --                     A D A . R E A L _ T I M E . C O N V                  --
  6. --                                                                          --
  7. --                                  S p e c                                 --
  8. --                                                                          --
  9. --                             $Revision: 1.7 $                             --
  10. --                                                                          --
  11. --       Copyright (c) 1991,1992,1993,1994, FSU, All Rights Reserved        --
  12. --                                                                          --
  13. -- GNARL is free software; you can redistribute it  and/or modify it  under --
  14. -- terms  of  the  GNU  Library General Public License  as published by the --
  15. -- Free Software  Foundation;  either version 2, or (at  your  option)  any --
  16. -- later  version.  GNARL is distributed  in the hope that  it will be use- --
  17. -- ful, but but WITHOUT ANY WARRANTY;  without even the implied warranty of --
  18. -- MERCHANTABILITY  or  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Gen- --
  19. -- eral Library Public License  for more details.  You should have received --
  20. -- a  copy of the GNU Library General Public License along with GNARL;  see --
  21. -- file COPYING.LIB.  If not,  write to the  Free Software Foundation,  675 --
  22. -- Mass Ave, Cambridge, MA 02139, USA.                                      --
  23. --                                                                          --
  24. ------------------------------------------------------------------------------
  25.  
  26. --  Provides conversion between Task_Clock.time and Real_Time.Time
  27. --  and Real_Time.Time_Span
  28.  
  29. with System.Task_Clock;
  30. --  Used for, Stimespec
  31.  
  32. package Ada.Real_Time.Conv is
  33.  
  34.    function Time_To_Stimespec
  35.      (T    : Real_Time.time)
  36.       return Task_Clock.Stimespec;
  37.  
  38.    function Stimespec_To_Time
  39.      (T    : Task_Clock.Stimespec)
  40.       return Real_Time.Time;
  41.  
  42.    function Time_Span_To_Stimespec
  43.      (T    : Real_Time.Time_Span)
  44.       return Task_Clock.Stimespec;
  45.  
  46.    function Stimespec_To_Time_Span
  47.      (T   : Task_Clock.Stimespec)
  48.       return Real_Time.Time_Span;
  49.  
  50. end Ada.Real_Time.Conv;
  51.